package com.wulis.provider.authority.model.bo;

import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author WuliBao
 * @date 2020-04-20
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "角色信息BO")
public class RoleBo {
    
    @ApiModelProperty("角色ID")
    private Long id;
    
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    
    @ApiModelProperty(value = "角色唯一标记")
    private String roleMark;
    
    @ApiModelProperty(value = "启用状态：0关闭 1启用")
    private Integer enable;
    
    @ApiModelProperty(value = "按钮权限")
    private List<Button> buttons;
    
    @Data
    @ApiModel(description = "按钮")
    public static class Button {
        
        @ApiModelProperty(value = "按钮ID")
        private Long buttonId;
        
        @ApiModelProperty(value = "权限标识")
        private String permissionMark;
        
        @ApiModelProperty(value = "启用状态：0关闭 1启用")
        private Integer enable;
    }
}
